package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author zhangyu
 * @date 2019/4/11
 */
public class MaintainWorkBean implements Parcelable {

    private int id;
    private int state;
    private String name;
    private boolean checked;
    private List<PersonBean> userList;

    public List<PersonBean> getUserList() {
        return userList;
    }

    public void setUserList(List<PersonBean> userList) {
        this.userList = userList;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.state);
        dest.writeString(this.name);
    }

    public MaintainWorkBean() {
    }

    protected MaintainWorkBean(Parcel in) {
        this.id = in.readInt();
        this.state = in.readInt();
        this.name = in.readString();
    }

    public static final Parcelable.Creator<MaintainWorkBean> CREATOR = new Parcelable.Creator<MaintainWorkBean>() {
        @Override
        public MaintainWorkBean createFromParcel(Parcel source) {
            return new MaintainWorkBean(source);
        }

        @Override
        public MaintainWorkBean[] newArray(int size) {
            return new MaintainWorkBean[size];
        }
    };
}
